import {
    _ as H,
    i as f,
    o as v,
    a as D,
    j as re,
    F as Y,
    k as N,
    l as a,
    b as m,
    t as R,
    m as s,
    q as Z,
    u as z,
    r as te,
    x as $,
    y as G,
    c as I,
    f as ee,
    z as q,
    A as ge,
    B as ye,
    C as we,
    D as le,
    G as be,
    H as ae,
    I as ke,
    J as Ce,
    K as ce,
    L as ne,
    M as Se,
    N as xe,
    O as Me,
    e as F,
    s as L,
    n as De,
    g as X,
    P as Ae,
    p as Ie,
    h as Oe
} from "./index-abba05ce.js";

const Ee = {
    name: "subMenu", props: ["list", "index"], data() {
        return {}
    }, computed: {
        currentPath() {
            return this.$route.path
        }
    }, mounted() {
    }, methods: {
        go(e) {
            console.log(e)
        }, clickItem(e) {
            console.log(987, e)
        }
    }
};

function Le(e, t, n, r, o, l) {
    const d = f("el-icon"), u = f("el-menu-item"), c = f("subMenu", !0), p = f("el-sub-menu");
    return v(!0), D(Y, null, re(n.list, (i, h) => {
        var C, b;
        return v(), D(Y, {key: h}, [((C = i == null ? void 0 : i.children) == null ? void 0 : C.length) == 0 ? (v(), N(u, {
            key: 0,
            index: i.url,
            onClick: l.clickItem
        }, {
            title: a(() => [m("span", null, R(i.name), 1)]),
            default: a(() => [s(d, null, {default: a(() => [(v(), N(Z(i.icon)))]), _: 2}, 1024)]),
            _: 2
        }, 1032, ["index", "onClick"])) : z("", !0), ((b = i == null ? void 0 : i.children) == null ? void 0 : b.length) > 0 ? (v(), N(p, {
            key: 1,
            index: i.url
        }, {
            title: a(() => [s(d, null, {
                default: a(() => [(v(), N(Z(i.icon)))]),
                _: 2
            }, 1024), m("span", null, R(i.name), 1)]),
            default: a(() => [s(c, {index: i.url, list: i.children}, null, 8, ["index", "list"])]),
            _: 2
        }, 1032, ["index"])) : z("", !0)], 64)
    }), 128)
}

const $e = H(Ee, [["render", Le]]);
const Re = {class: "wraper"}, Ve = {class: "menu"}, Ne = {class: "menu-btn-item"}, Te = {
    __name: "menu", props: {
        menu: {
            type: [Object, Array], default() {
                return []
            }
        }, isCollapse: {
            type: Boolean, default() {
                return !1
            }
        }
    }, setup(e) {
        const t = e;
        te({});
        const n = $(!1), r = $({});
        G(() => {
        });
        const o = I(() => q.currentRoute.value.path), l = u => {
        }, d = u => {
        };
        return (u, c) => {
            var k, M;
            const p = f("el-menu"), i = f("el-scrollbar"), h = f("el-aside"), C = f("Back"), b = f("Right"),
                x = f("el-icon");
            return v(), D("div", Re, [((k = t.menu) == null ? void 0 : k.length) > 0 ? (v(), N(h, {
                key: 0,
                width: n.value ? "96px" : "256px"
            }, {
                default: a(() => [s(i, null, {
                    default: a(() => [m("div", {
                        class: "menubox",
                        style: ee({width: n.value ? "96px" : "256px"})
                    }, [m("div", Ve, [s(p, {
                        ref_key: "elMenuRef",
                        ref: r,
                        "default-active": o.value,
                        collapse: n.value,
                        "unique-opened": !0,
                        router: !0,
                        onOpen: l,
                        onClose: d
                    }, {
                        default: a(() => [s($e, {list: t.menu}, null, 8, ["list"])]),
                        _: 1
                    }, 8, ["default-active", "collapse"])])], 4)]), _: 1
                })]), _: 1
            }, 8, ["width"])) : z("", !0), ((M = t.menu) == null ? void 0 : M.length) > 0 ? (v(), D("div", {
                key: 1,
                class: "menu-btn",
                style: ee({width: n.value ? "96px" : "256px"}),
                onClick: c[0] || (c[0] = g => n.value = !n.value)
            }, [m("div", Ne, [s(x, {size: "18"}, {
                default: a(() => [n.value ? z("", !0) : (v(), N(C, {key: 0})), n.value ? (v(), N(b, {key: 1})) : z("", !0)]),
                _: 1
            })])], 4)) : z("", !0)])
        }
    }
}, Fe = H(Te, [["__scopeId", "data-v-98ec430b"]]), je = "" + new URL("logo-ef86275c.png", import.meta.url).href;

function ue(e) {
    return ke() ? (Ce(e), !0) : !1
}

function W(e) {
    return typeof e == "function" ? e() : ye(e)
}

const ze = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const Be = Object.prototype.toString, We = e => Be.call(e) === "[object Object]", ie = () => {
};

function Je(e, t) {
    function n(...r) {
        return new Promise((o, l) => {
            Promise.resolve(e(() => t.apply(this, r), {fn: t, thisArg: this, args: r})).then(o).catch(l)
        })
    }

    return n
}

const de = e => e();

function He(e = de) {
    const t = $(!0);

    function n() {
        t.value = !1
    }

    function r() {
        t.value = !0
    }

    const o = (...l) => {
        t.value && e(...l)
    };
    return {isActive: le(t), pause: n, resume: r, eventFilter: o}
}

function Pe(e) {
    return e || ce()
}

function Ue(...e) {
    if (e.length !== 1) return we(...e);
    const t = e[0];
    return typeof t == "function" ? le(be(() => ({get: t, set: ie}))) : $(t)
}

function qe(e, t, n = {}) {
    const {eventFilter: r = de, ...o} = n;
    return ne(e, Je(r, t), o)
}

function Ge(e, t, n = {}) {
    const {eventFilter: r, ...o} = n, {eventFilter: l, pause: d, resume: u, isActive: c} = He(r);
    return {stop: qe(e, t, {...o, eventFilter: l}), pause: d, resume: u, isActive: c}
}

function _e(e, t = !0, n) {
    Pe() ? G(e, n) : t ? e() : ae(e)
}

function Ke(e = !1, t = {}) {
    const {truthyValue: n = !0, falsyValue: r = !1} = t, o = ge(e), l = $(e);

    function d(u) {
        if (arguments.length) return l.value = u, l.value;
        {
            const c = W(n);
            return l.value = l.value === c ? W(r) : c, l.value
        }
    }

    return o ? d : [l, d]
}

function fe(e) {
    var t;
    const n = W(e);
    return (t = n == null ? void 0 : n.$el) != null ? t : n
}

const J = ze ? window : void 0;

function oe(...e) {
    let t, n, r, o;
    if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, o] = e, t = J) : [t, n, r, o] = e, !t) return ie;
    Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
    const l = [], d = () => {
            l.forEach(i => i()), l.length = 0
        }, u = (i, h, C, b) => (i.addEventListener(h, C, b), () => i.removeEventListener(h, C, b)),
        c = ne(() => [fe(t), W(o)], ([i, h]) => {
            if (d(), !i) return;
            const C = We(h) ? {...h} : h;
            l.push(...n.flatMap(b => r.map(x => u(i, b, x, C))))
        }, {immediate: !0, flush: "post"}), p = () => {
            c(), d()
        };
    return ue(p), p
}

function Qe() {
    const e = $(!1), t = ce();
    return t && G(() => {
        e.value = !0
    }, t), e
}

function Xe(e) {
    const t = Qe();
    return I(() => (t.value, !!e()))
}

function Ye(e, t = {}) {
    const {window: n = J} = t, r = Xe(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
    let o;
    const l = $(!1), d = p => {
        l.value = p.matches
    }, u = () => {
        o && ("removeEventListener" in o ? o.removeEventListener("change", d) : o.removeListener(d))
    }, c = xe(() => {
        r.value && (u(), o = n.matchMedia(W(e)), "addEventListener" in o ? o.addEventListener("change", d) : o.addListener(d), l.value = o.matches)
    });
    return ue(() => {
        c(), u(), o = void 0
    }), l
}

const P = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
    U = "__vueuse_ssr_handlers__", Ze = et();

function et() {
    return U in P || (P[U] = P[U] || {}), P[U]
}

function pe(e, t) {
    return Ze[e] || t
}

function tt(e) {
    return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number"
}

const nt = {
    boolean: {read: e => e === "true", write: e => String(e)},
    object: {read: e => JSON.parse(e), write: e => JSON.stringify(e)},
    number: {read: e => Number.parseFloat(e), write: e => String(e)},
    any: {read: e => e, write: e => String(e)},
    string: {read: e => e, write: e => String(e)},
    map: {read: e => new Map(JSON.parse(e)), write: e => JSON.stringify(Array.from(e.entries()))},
    set: {read: e => new Set(JSON.parse(e)), write: e => JSON.stringify(Array.from(e))},
    date: {read: e => new Date(e), write: e => e.toISOString()}
}, se = "vueuse-storage";

function ot(e, t, n, r = {}) {
    var o;
    const {
        flush: l = "pre",
        deep: d = !0,
        listenToStorageChanges: u = !0,
        writeDefaults: c = !0,
        mergeDefaults: p = !1,
        shallow: i,
        window: h = J,
        eventFilter: C,
        onError: b = _ => {
            console.error(_)
        },
        initOnMounted: x
    } = r, k = (i ? Se : $)(typeof t == "function" ? t() : t);
    if (!n) try {
        n = pe("getDefaultStorage", () => {
            var _;
            return (_ = J) == null ? void 0 : _.localStorage
        })()
    } catch (_) {
        b(_)
    }
    if (!n) return k;
    const M = W(t), g = tt(M), A = (o = r.serializer) != null ? o : nt[g], {
        pause: S,
        resume: w
    } = Ge(k, () => O(k.value), {flush: l, deep: d, eventFilter: C});
    return h && u && _e(() => {
        oe(h, "storage", E), oe(h, se, T), x && E()
    }), x || E(), k;

    function O(_) {
        try {
            const y = n.getItem(e), V = j => {
                h && h.dispatchEvent(new CustomEvent(se, {detail: {key: e, oldValue: y, newValue: j, storageArea: n}}))
            };
            if (_ == null) V(null), n.removeItem(e); else {
                const j = A.write(_);
                y !== j && (n.setItem(e, j), V(j))
            }
        } catch (y) {
            b(y)
        }
    }

    function B(_) {
        const y = _ ? _.newValue : n.getItem(e);
        if (y == null) return c && M != null && n.setItem(e, A.write(M)), M;
        if (!_ && p) {
            const V = A.read(y);
            return typeof p == "function" ? p(V, M) : g === "object" && !Array.isArray(V) ? {...M, ...V} : V
        } else return typeof y != "string" ? y : A.read(y)
    }

    function T(_) {
        E(_.detail)
    }

    function E(_) {
        if (!(_ && _.storageArea !== n)) {
            if (_ && _.key == null) {
                k.value = M;
                return
            }
            if (!(_ && _.key !== e)) {
                S();
                try {
                    (_ == null ? void 0 : _.newValue) !== A.write(k.value) && (k.value = B(_))
                } catch (y) {
                    b(y)
                } finally {
                    _ ? ae(w) : w()
                }
            }
        }
    }
}

function me(e) {
    return Ye("(prefers-color-scheme: dark)", e)
}

function st(e = {}) {
    const {
            selector: t = "html",
            attribute: n = "class",
            initialValue: r = "auto",
            window: o = J,
            storage: l,
            storageKey: d = "vueuse-color-scheme",
            listenToStorageChanges: u = !0,
            storageRef: c,
            emitAuto: p,
            disableTransition: i = !0
        } = e, h = {auto: "", light: "light", dark: "dark", ...e.modes || {}}, C = me({window: o}),
        b = I(() => C.value ? "dark" : "light"),
        x = c || (d == null ? Ue(r) : ot(d, r, l, {window: o, listenToStorageChanges: u})),
        k = I(() => x.value === "auto" ? b.value : x.value), M = pe("updateHTMLAttrs", (w, O, B) => {
            const T = typeof w == "string" ? o == null ? void 0 : o.document.querySelector(w) : fe(w);
            if (!T) return;
            let E;
            if (i) {
                E = o.document.createElement("style");
                const _ = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
                E.appendChild(document.createTextNode(_)), o.document.head.appendChild(E)
            }
            if (O === "class") {
                const _ = B.split(/\s/g);
                Object.values(h).flatMap(y => (y || "").split(/\s/g)).filter(Boolean).forEach(y => {
                    _.includes(y) ? T.classList.add(y) : T.classList.remove(y)
                })
            } else T.setAttribute(O, B);
            i && (o.getComputedStyle(E).opacity, document.head.removeChild(E))
        });

    function g(w) {
        var O;
        M(t, n, (O = h[w]) != null ? O : w)
    }

    function A(w) {
        e.onChanged ? e.onChanged(w, g) : g(w)
    }

    ne(k, A, {flush: "post", immediate: !0}), _e(() => A(k.value));
    const S = I({
        get() {
            return p ? x.value : k.value
        }, set(w) {
            x.value = w
        }
    });
    try {
        return Object.assign(S, {store: x, system: b, state: k})
    } catch {
        return S
    }
}

function rt(e = {}) {
    const {valueDark: t = "dark", valueLight: n = "", window: r = J} = e, o = st({
        ...e, onChanged: (u, c) => {
            var p;
            e.onChanged ? (p = e.onChanged) == null || p.call(e, u === "dark", c, u) : c(u)
        }, modes: {dark: t, light: n}
    }), l = I(() => o.system ? o.system.value : me({window: r}).value ? "dark" : "light");
    return I({
        get() {
            return o.value === "dark"
        }, set(u) {
            const c = u ? "dark" : "light";
            l.value === c ? o.value = "auto" : o.value = c
        }
    })
}

const lt = rt();
Ke(lt);
const at = {
    name: "setting", props: [], data() {
        return {
            drawer: !1,
            predefineColors: ["#000000", "#1A7011", "#ff8c00", "#59A9D9", "#3f3f46", "#00ced1", "#1e90ff", "#c71587", "#bb1b1b", "#e84a6c", "#7166f0"],
            form: {color: "#000000"}
        }
    }, mounted() {
    }, methods: {
        open() {
            this.drawer = !0
        }, cancel() {
            this.drawer = !1
        }, async onSubmit() {
            await Me.common.saveConfig(this.form), this.cancel(), location.reload()
        }
    }
}, ct = {style: {flex: "auto"}};

function ut(e, t, n, r, o, l) {
    const d = f("el-color-picker"), u = f("el-form-item"), c = f("el-form"), p = f("el-button"), i = f("el-drawer");
    return v(), N(i, {
        modelValue: o.drawer,
        "onUpdate:modelValue": t[1] || (t[1] = h => o.drawer = h),
        title: "偏好设置",
        direction: e.direction,
        "before-close": e.handleClose
    }, {
        footer: a(() => [m("div", ct, [m("div", null, [s(u, null, {
            default: a(() => [s(p, {
                type: "primary",
                onClick: l.onSubmit
            }, {
                default: a(() => [F("保存")]),
                _: 1
            }, 8, ["onClick"]), s(p, {onClick: l.cancel}, {default: a(() => [F("取消")]), _: 1}, 8, ["onClick"])]), _: 1
        })])])]),
        default: a(() => [m("div", null, [m("div", null, [s(c, {
            "label-position": "top",
            "label-width": "80px"
        }, {
            default: a(() => [s(u, {label: "主题颜色"}, {
                default: a(() => [s(d, {
                    modelValue: o.form.color,
                    "onUpdate:modelValue": t[0] || (t[0] = h => o.form.color = h),
                    "color-format": "hex",
                    predefine: o.predefineColors
                }, null, 8, ["modelValue", "predefine"])]), _: 1
            })]), _: 1
        })])])]),
        _: 1
    }, 8, ["modelValue", "direction", "before-close"])
}

const it = H(at, [["render", ut]]);
const dt = {class: "head"}, _t = {class: "left"}, ft = {class: "logo-wrapper"}, pt = ["src"],
    mt = {key: 1, src: je, alt: "", class: "logo"}, ht = {class: "brand"}, vt = {class: "tname"},
    gt = {key: 0, class: "v"}, yt = {class: "head-menu-wraper"}, wt = ["onClick"], bt = {class: "m-2"},
    kt = {class: "right"}, Ct = {class: "userinfo"}, St = {class: "avatar"}, xt = {class: "nickname"},
    Mt = {class: "t1"}, Dt = {class: "t2"}, At = {
        __name: "head", emits: ["change"], setup(e, {emit: t}) {
            const n = $(!1), r = $(""), o = t;
            te({});
            const l = $(null), d = I(() => L.state.user.userInfo), u = I(() => L.state.user.menu),
                c = I(() => L.state.app.config), p = I(() => L.state.user.license),
                i = g => n.value ? r.value = p.value : r.value = p.value.substring(0, 4) + "********" + p.value.substr(-4),
                h = I(() => (o("change", L.state.app.menuIndex), L.state.app.menuIndex)), C = g => {
                    var w, O;
                    if (L.state.app.menuIndex == g) return;
                    const A = ((O = (w = u.value[g]) == null ? void 0 : w.children) == null ? void 0 : O.lenght) > 0,
                        S = u.value[g].url;
                    L.commit("app/setMenuIndex", g), A || q.push(S), o("change", g)
                };
            G(() => {
                const g = L.state.app.menuIndex;
                o("change", g)
            });
            const b = () => {
                var g = document.documentElement;
                X.screen(g)
            }, x = () => {
                l.value.open()
            }, k = () => {
                window.open(c.value.copyright[5], "_blank")
            }, M = g => {
                g == "outLogin" ? (X.storage.clear(), q.push("/login")) : g == "uc" ? q.push("/profile") : g == "clearCache" && (X.storage.clear(), Ae.msgSuccess("缓存清理成功"))
            };
            return (g, A) => {
                const S = f("el-icon"), w = f("el-scrollbar"), O = f("full-screen"), B = f("Monitor"), T = f("Setting"),
                    E = f("arrow-down"), _ = f("User"), y = f("el-dropdown-item"), V = f("Delete"), j = f("SwitchButton"),
                    he = f("el-dropdown-menu"), ve = f("el-dropdown");
                return v(), D("div", dt, [m("div", _t, [m("div", ft, [c.value.copyright[0] == 1 && c.value.copyright[2] ? (v(), D("img", {
                    key: 0,
                    src: c.value.copyright[2],
                    alt: "",
                    class: "logo"
                }, null, 8, pt)) : (v(), D("img", mt)), m("div", ht, [m("div", vt, [F(R(c.value.copyright[0] == 1 ? c.value.copyright[1] : "见闻间") + " ", 1), c.value.version ? (v(), D("div", gt, "v" + R(c.value.version), 1)) : z("", !0)]), m("div", {
                    class: "license",
                    onClick: A[0] || (A[0] = K => n.value = !n.value)
                }, " ID：" + R(i(r.value || "")), 1)])]), s(w, null, {
                    default: a(() => [m("div", yt, [(v(!0), D(Y, null, re(u.value, (K, Q) => (v(), D("div", {
                        key: Q,
                        class: De(["item", {active: Q == h.value}]),
                        onClick: jt => C(Q)
                    }, [s(S, null, {
                        default: a(() => [(v(), N(Z(K.icon)))]),
                        _: 2
                    }, 1024), m("span", bt, R(K.name || "菜单"), 1)], 10, wt))), 128)), m("div", {
                        class: "current-menu",
                        style: ee({left: h.value * 100 + "px"})
                    }, null, 4)])]), _: 1
                })]), m("div", kt, [m("div", {class: "scree", onClick: b}, [s(S, {size: "18"}, {
                    default: a(() => [s(O)]),
                    _: 1
                })]), m("div", {
                    class: "scree",
                    onClick: k,
                    style: {"margin-left": "15px"}
                }, [s(S, {size: "18"}, {default: a(() => [s(B)]), _: 1})]), m("div", {
                    class: "scree",
                    onClick: x,
                    style: {"margin-left": "15px"}
                }, [s(S, {size: "18"}, {default: a(() => [s(T)]), _: 1})]), s(ve, {
                    class: "user panel-item",
                    trigger: "click",
                    onCommand: M
                }, {
                    dropdown: a(() => [s(he, null, {
                        default: a(() => [s(y, {command: "uc"}, {
                            default: a(() => [s(S, null, {
                                default: a(() => [s(_)]),
                                _: 1
                            }), F("帐号信息")]), _: 1
                        }), s(y, {command: "clearCache"}, {
                            default: a(() => [s(S, null, {
                                default: a(() => [s(V)]),
                                _: 1
                            }), F("清除缓存")]), _: 1
                        }), s(y, {command: "outLogin"}, {
                            default: a(() => [s(S, null, {
                                default: a(() => [s(j)]),
                                _: 1
                            }), F("退出登录")]), _: 1
                        })]), _: 1
                    })]),
                    default: a(() => [m("div", Ct, [m("div", St, R(d.value.realname ? d.value.realname[0] : ""), 1), m("label", xt, [m("div", Mt, R(d.value.realname), 1), m("div", Dt, R(d.value.account), 1)]), s(S, {
                        class: "icon-right",
                        color: "black"
                    }, {default: a(() => [s(E)]), _: 1})])]),
                    _: 1
                })]), s(it, {ref_key: "settingDrawerRef", ref: l}, null, 512)])
            }
        }
    }, It = H(At, [["__scopeId", "data-v-16897595"]]);
const Ot = e => (Ie("data-v-c774135e"), e = e(), Oe(), e), Et = {class: "footer-wrap"}, Lt = {key: 0, class: "wrap"},
    $t = {key: 1, class: "wrap"},
    Rt = Ot(() => m("a", {href: "https://cc.chaopin100.com", target: "_blank"}, "见闻间.", -1)), Vt = {
        __name: "footer", setup(e) {
            const t = I(() => L.state.app.config);
            return (n, r) => (v(), D("div", Et, [t.value.copyright[0] == 1 && t.value.copyright[4] ? (v(), D("div", Lt, R(t.value.copyright[4]), 1)) : (v(), D("div", $t, [F(" Copyright © 2024 "), Rt, F(" All Rights Reserved. 陕西超拼软件科技有限公司 版权所有 ")]))]))
        }
    }, Nt = H(Vt, [["__scopeId", "data-v-c774135e"]]);
const Tt = {class: "common-layout"}, Ft = {
    __name: "index", setup(e) {
        const t = te({menu: []}), n = r => {
            var o;
            t.menu = (o = L.state.user.menu[r]) == null ? void 0 : o.children
        };
        return (r, o) => {
            const l = f("el-header"), d = f("router-view"), u = f("el-main"), c = f("el-footer"), p = f("el-container");
            return v(), D("div", Tt, [s(p, null, {
                default: a(() => [s(l, null, {
                    default: a(() => [s(It, {onChange: n})]),
                    _: 1
                }), s(p, null, {
                    default: a(() => [s(Fe, {menu: t.menu}, null, 8, ["menu"]), s(p, null, {
                        default: a(() => [s(u, null, {
                            default: a(() => [s(d)]),
                            _: 1
                        }), s(c, null, {default: a(() => [s(Nt)]), _: 1})]), _: 1
                    })]), _: 1
                })]), _: 1
            })])
        }
    }
}, Bt = H(Ft, [["__scopeId", "data-v-8f6451a5"]]);
export {Bt as default};
